<template>
  <div class="box">
    <div class="my-box">
      <div class="myhead">
        <div class="myhead-img">
        <img src="http://yanxuan.nosdn.127.net/8945ae63d940cc42406c3f67019c5cb6.png" alt="">
        </div>
        <span>用户</span>
      </div>
      <div class="mycontent">
        <div class="item">我的订单</div>
        <div class="item">优惠券</div>
        <div class="item">我的足迹</div>
        <div class="item" @click="golistAction">我的收藏</div>
        <div class="item" @click="goaddress">地址管理</div>
        <div class="item">联系客服</div>
        <div class="item">帮助中心</div>
        <div class="item" @click="gofeedback">意见反馈</div>
        <div class="item"></div>

      </div>
    </div>

    <van-tabbar route>
      <!-- replace 跳转是否替换当前页面 -->
      <!-- to 跳转路由 -->
      <van-tabbar-item replace to="/home" icon="wap-home-o"
        >首页</van-tabbar-item
      >
      <van-tabbar-item replace to="/topic" icon="description"
        >专题</van-tabbar-item
      >
      <van-tabbar-item replace to="/category" icon="apps-o"
        >分类</van-tabbar-item
      >
      <van-tabbar-item replace to="/cart" icon="shopping-cart-o"
        >购物车</van-tabbar-item
      >
      <van-tabbar-item replace to="/my" icon="friends-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data(){
    return{

    }
  },
  methods:{
    // 跳转到意见反馈页面
    gofeedback(){
      this.$router.push({name:'feedback'})
    },
    //跳转到地址页面
    goaddress(){
      this.$router.push({name:'address'})
    },
    //跳转到收藏页面
    golistAction(){
    this.$router.push({name:'listAction'})
    }
  }

}
</script>
<style lang="scss" scoped>
  .box{
    width: 100%;
    height:700px;
  background-color: #f4f4f4;
    .my-box{
      width: 100%;
      .myhead{
        width:100%;
        height: 140px;
        background-color: #333333;
        line-height: 140px;
        .myhead-img{
          float: left;
          width: 75px;
          height: 75px;
          border-radius:50%;
          overflow: hidden;
          margin-top:25px;
          margin-left: 15px;
          img{
          width: 100%;
          height: 100%;
        }
        }
        span{
          float: left;
          margin-left: 15px;
          color: #fff;
          font-size: 14px;
        }
      }
      .mycontent{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        .item{
          width: 33%;
          height:70px;
          line-height: 70px;
          text-align: center;
          margin-bottom:3px;
          background-color: #fff;
        }
      }
    }
  }
</style>